package yns.springboot.guide.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController extends BaseController {

	// http://localhost:8080/index
	// http://localhost:8080/index2

	private final Logger logger = LoggerFactory.getLogger(this.getClass());

	@RequestMapping("/index")
	public String index() {
		logger.info(httpServletRequest.getRequestURI());
		return "index.html";
	}

	@RequestMapping("/index2")
	public String index2() {
		logger.info(httpServletRequest.getRequestURI());
		return "page/index2.html";
	}

}
